package com.ccb.ha.zhxf.service.impl;

import com.ccb.ha.zhxf.entity.Focus;
import com.ccb.ha.zhxf.entity.Province;
import com.ccb.ha.zhxf.mapper.ProvinceMapper;
import com.ccb.ha.zhxf.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("provinceService")
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> FindAll(){

        return provinceMapper.FindAll();
    }

    @Override
    public List<Province> FindById(int mechanism_id) {
        return provinceMapper.FindById(mechanism_id);
    }

    @Override
    public int InsertProvince(Province provinces) {
        return 0;
    }

    @Override
    public int InsertProvince(Province provinces, Focus focus) {

        return provinceMapper.InsertProvince(provinces);
    }
}
